using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using Edge.Business.Domain;
using Edge.Common.ComponentModel;

namespace Dune.Business.Domain.Users
{
    [Serializable]
    public enum UserStatus
    {
        [Description("Active")]
        Active = 0,
        [Description("Inactive")]
        Inactive = 1
    }

    [Serializable]
    public class UserFilter : BaseFilter, ITextSearchSupported
    {
        private string keyword;
        private string userId;
        private int reportToID;
        private UserStatus? status;

        public string UserID
        {
            get { return userId; }
            set { userId = value; }
        }

        public string GetText()
        {
            return keyword;
        }

        public void SetText(string text)
        {
            keyword = text;
        }

        [Browsable(true),
            Description("Keyword"),
            Required(false),
            Category("Advanced Search"),
            Order(1)]
        public string Keyword
        {
            get { return keyword; }
            set { keyword = value; }
        }


        public int ReportToID
        {
            get { return reportToID; }
            set { reportToID = value; }
        }
    }
}
